package com.bytz.modules.cms.echop.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
public class CreateContractRequest {

    @ApiModelProperty("合同名称")
    private String subject;

    @ApiModelProperty("合同编号")
    private String sn;

    @ApiModelProperty("合同文档列表")
    private List<Long> documents;

    @ApiModelProperty("业务id(订单id)")
    private String bizId;

    @ApiModelProperty("生成合同需要的参数")
    private List<DocumentParam> documentParams;

    private Boolean send = true;

    private Long categoryId;

    private String tenantName;

    private List<Signatory> signatories;

    @Getter
    @Setter
    @AllArgsConstructor
    public static class Signatory {

        private String contact;

        private String tenantName;

        private String tenantType;

        private Integer serialNo;


    }

    @Getter
    @Setter
    @AllArgsConstructor
    public static class DocumentParam {

        private String name;

        private String value;


    }


}
